﻿using System;
using System.Collections.Generic;

namespace Inaction.ServiceProxy
{
    public static class TypeCache
    {
        static Dictionary<string, Type> typeCache = new Dictionary<string, Type>();
        public static void Add(string assembly, string fullName, Type type)
        {
            var key = assembly + "," + fullName;
            if (typeCache.ContainsKey(key)) return;
        }
        public static Type Get(string assembly, string fullName)
        {
            var key = assembly + "," + fullName;
            if (!typeCache.ContainsKey(key)) return null;
            return typeCache[key];
        }
    }
}
